#include "Probability.h"

Probability::Probability(const float p):probability(p)
{
}

float Probability::operator&(const Probability & EventA) const
{	
  return probability*EventA.probability;
}
float Probability::operator|(const Probability & EventA) const
{	
  return probability+EventA.probability-probability*EventA.probability;
}
float Probability::operator~() const
{	
  return 1-probability;
}
